package com.zhouheng.springbootdesignpattern.decoratorpattern;

/**
 * 具体的装饰者类，给内部持有的具体被装饰对象，增加具体的职责
 *
 * @author 周恒
 * @date 20190614 11:01:48
 * @since v1.0
 */
public class ManDecoratorA extends DecoratorPerson {

    @Override
    public void eat() {
        super.eat();
        reEat();
        System.out.println("ManDecoratorA类");
    }

    public void reEat() {
        System.out.println("再吃一顿饭");
    }

}
